package com.xhblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author pengyouhong
 * create 2022/5/17 18:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "xh_blog.ms_sys_log")
public class SysLog implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "create_date")
    private Long createDate;

    @TableField(value = "ip")
    private String ip;

    @TableField(value = "method")
    private String method;

    @TableField(value = "module")
    private String module;

    @TableField(value = "nickname")
    private String nickname;

    @TableField(value = "operation")
    private String operation;

    @TableField(value = "params")
    private String params;

    @TableField(value = "time")
    private Long time;

    @TableField(value = "userid")
    private Long userid;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_IP = "ip";

    public static final String COL_METHOD = "method";

    public static final String COL_MODULE = "module";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_OPERATION = "operation";

    public static final String COL_PARAMS = "params";

    public static final String COL_TIME = "time";

    public static final String COL_USERID = "userid";
}